<?php 
defined("VALIDASI") or die ('Tidak diperkaenankan mengakses file ini secara langsung !');
if($_SESSION[level]=='beli'||$_SESSION[level]=='manager') {
//QUERY
$sql_tblsupplier=mysql_query("SELECT * FROM tblsupplier order by IDSupplier asc");
//MENAMPILKAN KE LAYAR
?>
<h3 align="center">Laporan Data Supplier</h3>
<table class="table"><tr>
<th width="20"><b>No.</th>
<th>Kode</th>
<th>Nama</th>
<th>Alamat</th>
<th>Telpon</th></tr>
<?php
while($baris_tblsupplier=mysql_fetch_array($sql_tblsupplier)) { $no++;
if ($n==0) {$warna="";$n++;} else {$warna="#dedee";$n--;}
?>
<tr bgcolor="<?php echo $warna;?>">
<td align="center"><?php echo $no; ?>.</td>
<td><?php echo $baris_tblsupplier[IDSupplier];?></td>
<td><?php echo $baris_tblsupplier[NamaSupplier];?></td>
<td><?php echo $baris_tblsupplier[AlamatSupplier];?></td>
<td><?php echo $baris_tblsupplier[Telpon];?></td></tr><?php } ?>
</table>
<p align="center"><a href="./file/supplier_print.php"target="_blank"><img src="./image/printer.gif" align=right width=5% title="Tampilan Cetak"></a></p>
<?php
} else {
echo"Akses Ditolak!";
}?>